// 借用构造函数
// 在子类型构造函数的内部调用父类构造函数，call apply

function Super() {
  this.property = true;
  this.getSuperValue = function() {
    return this.property;
  };
}

function Sub() {
  // Super.call(this);
  Super.apply(this, arguments);
  this.property = false;
  this.getSubValue = function() {
    return this.property;
  };
}

var sub = new Sub();
console.log(sub.getSuperValue());
console.log(sub.getSubValue());
